<template>
	<view class="box-home-user-login">
		<view class="top">
			<view class="left">
				<image class="img" :src="picUrl" mode="heightFix"></image>
				<p class="integral"><span>{{integral}}</span>积分</p>
			</view>
			<view class="right">
				lv.{{vipLevel}}
			</view>	
		</view>
		<view class="content">
			<view class="navigation">
				<view class="item">
					<view class="img-box task">
						 <image src="../../static/icons/award.png" class="img" mode="widthFix"></image> 
					</view>
					<text>任务</text>
				</view>		
				<view class="item">
					<view class="img-box rank">
						<image src="../../static/icons/award.png" class="img" mode="widthFix"></image>	
					</view>
					<text>排行榜</text>
				</view>
				<view class="item">
					<view class="img-box welfare">
						<image src="../../static/icons/award.png" class="img" mode="widthFix"></image>				
					</view>
					<text>福利活动</text>	
				</view>
				<view class="item">
					<view class="img-box asset">
						<image src="../../static/icons/award.png" class="img" mode="widthFix"></image>	
					</view>		
					<text>资产</text>			
				</view>
			</view>
			<intergral-product class="intergral-product"></intergral-product>
		</view>
	</view>
</template>

<script>
	import intergralProduct from '@/components/integral-product/intergral-product.vue' ;
	export default {
		data() {
			return {
				picUrl:'../../static/pics/face.png',
				integral:'0',
				vipLevel:'2'
			}
		},
		components:{
			intergralProduct
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
.box-home-user-login{
	font-family: PingFangSC-Regula;
	.top{
		display: flex;
		justify-content: space-between;
		align-items:center;
		margin: 0 auto;
		padding: 0 20upx;
		width: 670upx;
		height: 136upx;		
		background: linear-gradient(141deg, #EDDE5D 0%, #F09819 100%);
		box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.16);
		border-radius: 12px 12px 0px 0px;
		.left{
			display: flex;
			align-items: center;
			.img{
				margin-right: 20upx;
				height: 80upx;
				border-radius: 50%;
			}
			.integral{
				line-height: 123upx;
				font-weight: 400;
				font-size: 24upx;
				color: #735400;
				span{
					padding-right: 5upx;
					font-family: ArialRoundedMTBold;
					font-size: 44upx;			
				}
				
			}
		}
		.right{
			display: inline-block;
			padding: 8upx 16upx;
			line-height: 14px;
			border-radius: 6upx;
			background: rgba(255, 255, 255, 0.4);			
			font-size: 20upx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #735400;
		
			

		}
		}
	.content{
		background-color: #f6f6f6;
		.navigation{
			display: flex;
			justify-content: space-around;
			padding-top: 40upx;
			.item{
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				align-items: center;
					.img-box{
					 display: flex;
					 justify-content: center;
					 align-items: center;
					 width: 112upx;
					 height: 112upx;
					 margin-bottom:16upx;
					 box-shadow: 0 0 8upx 0 rgba(0, 0, 0, 0.04);
					 border-radius: 44upx;
						 .img{
							width: 80upx;
						 }
					}
			}
			.task{			
				background: linear-gradient(180deg, #C2E9FB 0%, #A1C4FD 100%);
			}
			.rank{		
				background: linear-gradient(180deg, #FCC687 0%, #F286A0 100%);
			}
			.welfare{		
				background: linear-gradient(180deg, #69CFF0 0%, #5192EA 100%);
				
			}
			.asset{		
				background: linear-gradient(180deg, #D4FC79 0%, #96E6A1 100%);
			}
		}
		.intergral-product{
			margin-top: 80upx;
		}
		
	}
	
			
	}

</style>
